<template>
  <div class="logistics-cell">
    <div class="logistics-cell__lefticon">
      <div class="logistics-cell__round" v-if="index - '0' !== 0">
        <div class="round"></div>
      </div>
      <div class="logistics-cell__checked" v-if="index - '0' === 0"></div>
      <div class="logistics-cell__line" v-if="index - '0' !== 0"></div>
      <div class="logistics-cell__line-checked" v-if="index - '0' === 0"></div>
    </div>
    <div class="logistics-cell__message">
      <span class="logistics-cell__flow" :style="{color: index - '0' === 0 ? 'RGBA(174, 42, 38, 1)': '333333'}">{{flow}}</span>
      <span class="logistics-cell__time" :style="{color: index - '0' === 0 ? 'RGBA(174, 42, 38, 1)': '333333'}">{{time}}</span>
    </div>
  </div>
</template>


<script>
  export default {
    data () {
      return {
      }
    },
    props: {
      time: '',
      flow: '',
      index: 0
    }
  }
</script>
<style lang="stylus" scoped>
.logistics-cell {
  width: 100%;
  display: flex;
  // height:200px;
  .logistics-cell__checked{
    background-image: url('~@image/logistics-checked.png');
    background-size: 38px 38px;
    width: 38px;
    height:38px;
    display flex;
    background-repeat: no-repeat;
  }
  .logistics-cell__round {
    width: 38px;
    height: 38px;
    /*margin-left: 43px;*/
    display flex;
    justify-content: center;
    .round{
      width: 14px;
      height:14px;
      
      border-radius: 50%;
      margin-top: 7px;
      background-color: #dddddd;
    }
  }
  .logistics-cell__flow {
    margin-top: 10px;
    margin-bottom: 20px;
    color: #333333;
    font-size: 26px;
    margin-left: 25px;
    margin-right: 25px;
  }
  .logistics-cell__time {
    color: #999999;
    font-size: 26px;
    margin-top: 15px;
    margin-left: 25px;
    margin-bottom: 20px;
  }
  .logistics-cell__line {
    width: 1px;
    height: 90%;
    display flex;
    margin-top: 7px;
    background-color: #eeeeee;
    /*margin-left: 43px;*/
    /*margin-top: 21px;*/
  }
  .logistics-cell__line-checked{
     width: 1px;
    height: 40%;
    display flex;
    margin-top: 15px;
    background-color: #eeeeee;
  }
  .logistics-cell__message {
    display: flex;
    flex-direction: column;
  }
  .logistics-cell__lefticon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    /*background-color: rebeccapurple;*/
    margin-left: 43px;
  }
}
</style>
